all:proto_client proto_server

proto_client:proto_client.cc request.pb.cc ../include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11  -I../include -L../lib  -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz

proto_server:proto_server.cc request.pb.cc ../include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 -I../include -L../lib  -lmuduo_net -lmuduo_base -pthread -lprotobuf  -lz

.PHONY:clean
clean:
	rm proto_client proto_server 